<!DOCTYPE>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="__PUBLIC__/Home/css/user_center.css">
    <script src="__PUBLIC__/Admin/js/jquery-1.9.1.js"></script>
    <script src="__PUBLIC__/Common/Layer/layer.js"></script>
    <title>会员中心</title>
</head>

<body>

<style>
    .layui-layer{
        top:150px !important;
    }
</style>
<!-- 栏目 -->
<include file="Public:header_center" />

<!-- 内容 -->
<div style="background-color:#f5f5f5;">
    <div class="content" style="width:1200px;">

        <include file="Public:left_center" />

        <div class="center-right right">
            <h3 class="title">我的订单 >> 评价</h3>
            <div class="Options" style=" width:1050px; background-color:#FFF; padding:20px; text-align:center; padding-top:50px;">

            <div style="font-size:16px; line-height:26px; margin-bottom:40px;">
            <form name="form" method="post" action="__SELF__">
                <table cellpadding="0" cellspacing="0" style="border:0; width:100%;">
                <foreach name="result" item="vo">
                  <tr>
                    <td width="31%" style="padding:10px;">
                        <div align="center" style="margin:20px 0;">
                            <p><img src="__PUBLIC__/Uploads/goods/{$vo.pic_url}" style="width:110px; height:110px; border:1px solid #CCC;"></p>
                            
                            <p style="font-size:14px;">套餐:{$vo.taocan_name}</p>
                            <p style="font-size:14px;">{$vo.goods_title}</p>
                        </div>
                    </td>
                    <td width="11%">&nbsp;</td>
                    <td width="58%" style="border-bottom:1px solid #CCC;">
                        <div style="margin:20px 0;">
                          <div style="margin-bottom:10px;font-size:14px;">

                          <input type="hidden" name="record_id[]" value="{$vo.id}">

                          <input type="radio" name="pingjia_status[{$vo.id}]" id="pingjia_status1" value="1" <if condition="$vo.pingjia_status == 1 || $vo.pingjia_status == ''"> checked </if> >
                          <label for="pingjia_status1" style="margin-right:40px;">好评</label>
                          
                          <input type="radio" name="pingjia_status[{$vo.id}]" id="pingjia_status2" value="2" <if condition="$vo.pingjia_status == 2"> checked </if> >
                          <label for="pingjia_status2" style="margin-right:40px;">中评</label>
                          
                          <input type="radio" name="pingjia_status[{$vo.id}]" id="pingjia_status3" value="3" <if condition="$vo.pingjia_status == 3"> checked </if> >
                          <label for="pingjia_status3">差评</label>
                          </div>

                          <p style="margin-bottom:10px;font-size:14px;">亲,说点什么吧,您的评价对我们很有帮助! </p>
                          <textarea name="pingjia_content[{$vo.id}]" style="width:460px; height:100px; padding:2px;" placeholder="字数限制100字以内">{$vo.pingjia_content}</textarea>

                      </div>
                    </td>
                  </tr>
                </foreach>
                  
                  
                  <tr>
                    <td>&nbsp;</td>
                    <td colspan="2">
                      <div style="text-align:center;margin-top:50px;">
                        
                          <input type="submit" name="button" id="button" style="width:200px; height:30px; text-align:center; " value="提交评论">
                        
                      </div>                  
                    </td>
                  </tr>
                </table>
            </form>
            </div>
            
            
                         
            </div>
        </div>
    </div>
    <!-- 底部 -->
    <include file="Public:footer_center" />
</body>
<script>
    //取消订单
    function cancel_order(id){
        $.post("{:U('User/cancel_order')}", { "id": id},function(data){
            if(data==1){
                layer.msg('删除成功', {

                    time: 2000 //2秒关闭（如果不配置，默认是3秒）
                }, function(){
                    $('.tab'+id).remove();
                });
            }else{
                layer.msg('删除失败');
            }
        }, "json");
    }
</script>
</html>
